package com.cfh.ahead;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;
import org.hsqldb.User;

public class Constant {
	@SuppressWarnings("unused")
	private static final Logger logger = Logger.getLogger(Constant.class);

	public static final String Y = "Y";
	public static final String N = "N";
	public static final String H = "H";
	public static final String M = "M";

	public static final String CHAR_ = "_";
	public static final String CHAR_CONNECT = "^";
	public static final String CHAR_CONNECT_2 = "-";

	public static final String CHAR_QUESTIONSTART = "Q";

	public static final String CFG_TYPE_LINK = "LINK";
	public static final String CFG_TYPE_COMPANY = "COMPANY";
	public static final String CFG_TYPE_LANG = "LANG";
	public static final String CFG_TYPE_FLV = "FLV";
	public static final String CFG_TYPE_PDF = "PDF";
	public static final String CFG_TYPE_INTRO = "INTRO";
	public static final String CFG_TYPE_BUYURL = "BUYURL";
	public static final String CFG_TYPE_PRDTYPE = "PRDTYPE";
	public static final String CFG_TYPE_QATITLE = "QATITLE";
	public static final String CFG_TYPE_QAOPTION = "QAOPTION";

	public static final String ORDERBY_LANG = "CFG_ORDER ASC,CFG_CODE ASC";
	public static final String ORDERBY_COMPANY = "CFG_ORDER ASC,CFG_CODE ASC";
	public static final String ORDERBY_LINK = "CFG_ORDER ASC,CFG_CODE ASC";

	public static final String XML_HEAD_STRING = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n";
	public static final boolean XML_HEAD_ISUSED = true;
	public static int MAX_COUNT_WHEN_EXCEPTION = 999999;

	public static final Map<Object, String> SEQUENCE;

	public static final String NAME = "name";
	public static final String VALUE = "value";

	/* AIO2.O START */
	public static final String CAPTCHA_SESSION_HOLDER = "CAPTCHA_SESSION_HOLDER";
	public static final String CAPTCHA_SESSION_INIT_VALUE = "CAPTCHA_SESSION_INIT_VALUE";
	public static final String CFG_TYPE_NEWS = "NEWS";
	public static final String ORDERBY_NEWS = "CFG_ORDER DESC,CFG_DATE DESC";
	public static final int MAX_RECORDS_FETCHED_FROM_DATABASE = 9999;

	static {
		SEQUENCE = new HashMap<Object, String>();
		SEQUENCE.put(User.class, "user");
	}

	private Constant() {

	}

}
